package com.kantboot.system.dict.web.controller;

import com.kantboot.system.dict.domain.vo.SysLanguageVO;
import com.kantboot.system.dict.service.ISysLanguageService;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system-dict-web/language")
public class SysLanguageController {

    @Resource
    private ISysLanguageService service;

    @RequestMapping("/getBySupport")
    public RestResult<List<SysLanguageVO>> getBySupport() {
        return RestResult.success(service.getBySupport(), "getSuccess", "获取成功");
    }

}
